import { createStore } from "vuex";

// 创建一个新的 store 实例
const store = createStore({
  state() {
    return {
      num: 1000,
    };
  },
  mutations: {
    changeNum(state) {
      console.log(123, state.num);

      state.num *= 2;
    },
  },
});

export default store;
